package com.railway.service;

import java.util.List;

import com.railway.bean.Suggestions;

public interface SuggestionsService {
	
	
	/**
	 * 添加用户建议信息
	 * @param suggestions
	 * @return
	 */
	int addSuggestions(Suggestions suggestions);
	

	
	/**
	 * 查询所有用户建议
	 * 并实现分页
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	List<Suggestions> selectAllSuggestions(int pageNum, int pageSize);
	
	/**
	 * 查询建议总数
	 * @return
	 */
	int selectCountSuggestion();
	
	/**
	 * 逻辑删除
	 * @param suggestionId
	 * @return
	 */
	int delSuggtion(int suggestionId);
	
	/**
	 * 永久删除
	 * @param suggestionId
	 * @return
	 */
	int delAbsoluteSuggtion(int suggestionId);
	
	/**
	 * 搜索建议人人名
	 * 身份证id
	 * 查询
	 * @param key
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	List<Suggestions> selectSuggestionLimit(String key,int pageNum,int pageSize);
	
	/**
	 * 搜索指定建议人或身份证总数
	 * @return
	 */
	int selectCountSuggestion(String key);
}
